package entities 
{
	import flash.events.MouseEvent;
	import flash.filters.ColorMatrixFilter;
	import pure.engine.renderer.IAnimation;
	import pure.engine.status.motion.PlatformMotion;
	import pure.engine.entity.IEntity;
	import pure.engine.entity.IEntityFactory;
	import pure.engine.renderer.AnimationRenderer;
	import status.PlatformStatus;
	
	/**
	 * ...
	 * @author Pure
	 */
public class PlatformBoy implements IEntityFactory 
{

	private var cmf2:ColorMatrixFilter=new ColorMatrixFilter([1, 0, 0, 0, 0,
														1, 0, 0, 0, 0,
														0, 0, 0, 0, 0,
														0, 0, 0, 0.9, 0]);
														
														
	public function produce(entity:IEntity, wx:Number, wy:Number, args:Array = null):IEntity
	{
		var R:IAnimation;
		
		R = entity.createAnimationRenderer('colonist_32_32','p',true);
		R.play('right_jump')
		R.addFilter(cmf2);
		//R.alpha = 0.5;

		entity.addStatus(new PlatformStatus(100,16,140),'s');
		return entity;
	}
}

}